package com.design.singleton;

/**
 * 登记式/静态内部类
 * Created by CrazyShaQiuShi on 2017/1/22.
 */
public class Singleton5 {

    private  Singleton5(){}
    private static final class   SingleHolder{
        private static  final  Singleton5 INSTANCE=new Singleton5();
    }
    public static  final  Singleton5 getInstance(){
        return SingleHolder.INSTANCE;
    }

}
